// 模拟数据的模块
define(function () {
    function random(min, max) {
        return Math.floor(Math.random() * (max - min + 1) + min);
    }
    var index = 0;
    return [{
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }, {
        url: `img/${random(1, 15)}.jpg`,
        price: random(20, 300),
        oldPrice: random(300, 1000),
        title: "这是一件商品" + ++index,
        sale: random(100, 10000),
        flag: Math.random() > 0.5 ? true : false,
    }]
})
